package com.sdry.constant;

/**
 * 枚举类
 * 
 * @AUTHOR HACKER
 */
public enum PartsResultConstant {

	/**
	 * 失败
	 */
	FAILED(0, "failed"),

	/**
	 * 成功
	 */
	SUCCESS(1, "success"),

	/**
	 * 无效长度
	 */
	INVALID_LENGTH(10001, "Invalid length");

	public int code;

	public String message;

	PartsResultConstant(int code, String message) {
		this.code = code;
		this.message = message;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

}
